# Copyright (c) 2010 Intelliprise.com
# 

__author__="Julian Hu"
__date__ ="$2010-12-23 21:37:45$"

import sys,os,time
import com.Intelliprise.Log.logging
from mechanize import Browser

if __name__ == "__main__":
    print "Web page catcher"

def webcatcher(url,path):
    br=Browser()
    try:
        br.open(url)
        response=br.response()
        out=open(path,'w')
        print >> out,response.read()
        out.close()
    except:
        logging.error(sys.stderr)
    
  